#!/usr/bin/env python
# LEAVE THE FOLLOWING TWO LINES
# GAME BAKER
# yaml
# 0
s = """
!!python/object:game.Game
gameobjects:
  Score: &id003 !!python/object:game.GameObject
    baseworkstate: WSScore
    name: Score
    objtype: Gameobject
    requires: []
    sprite: null
    x: 0
    y: 0
  background: &id007 !!python/object:game.GameObject
    baseworkstate: wsbackground
    name: background
    objtype: Gameobject
    requires: []
    sprite: background
  clock: &id009 !!python/object:game.GameObject
    baseworkstate: wsclock
    name: clock
    objtype: Gameobject
    requires: []
    sprite: null
    x: 0
    y: 40
  cook: &id002 !!python/object:game.GameObject
    baseworkstate: wscook
    name: cook
    objtype: Gameobject
    requires: []
    sprite: gb_cook
    x: 0
    y: 0
  customer: !!python/object:game.GameObject
    baseworkstate: wscustomerstart
    name: customer
    objtype: Gameobject
    requires: []
    sprite: soldier_runright
    x: 0
    y: 0
  dish: !!python/object:game.GameObject
    baseworkstate: wsdish
    name: dish
    objtype: Gameobject
    requires: []
    sprite: drinkcola
  mastercustomer: &id008 !!python/object:game.GameObject
    baseworkstate: wsmastercustomer
    name: mastercustomer
    objtype: Gameobject
    requires: []
    sprite: soldier_runright
    x: 0
    y: 0
  menu: &id005 !!python/object:game.GameObject
    baseworkstate: wsmenu
    name: menu
    objtype: Gameobject
    requires: []
    sprite: menu
    x: 0
    y: 0
  menues: &id006 !!python/object:game.GameObject
    baseworkstate: wsmenues
    name: menues
    objtype: Gameobject
    requires: []
    sprite: menues
  menusign: &id004 !!python/object:game.GameObject
    baseworkstate: wsmenusign
    name: menusign
    objtype: Gameobject
    requires: []
    sprite: null
    x: 0
    y: 20
  order: !!python/object:game.GameObject
    baseworkstate: wsorder
    name: order
    objtype: Gameobject
    requires: []
    sprite: null
  player: &id001 !!python/object:game.GameObject
    baseworkstate: wsplayerstart
    name: player
    objtype: Gameobject
    requires: []
    sprite: soldier_runright
    x: 0
    y: 0
  table: !!python/object:game.GameObject
    baseworkstate: wstable
    name: table
    objtype: Gameobject
    requires: []
    sprite: table
gamescreens:
  level: !!python/object:game.GameScreen
    color: !!python/tuple [255, 255, 100]
    dimensions: !!python/tuple [1000, 600]
    objtype: Gamescreen
    startobjects:
    - *id001
    - *id002
    - *id003
    - *id004
    - *id005
    - *id006
    - *id007
    - *id008
    - *id009
  levelcomplete: !!python/object:game.GameScreen
    color: !!python/tuple [255, 0, 0]
    dimensions: !!python/tuple [800, 600]
    objtype: Gamescreen
    startobjects: []
initcode: ''
objtype: Game
sprites:
  background: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 255, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [799, 599]
      filename: sprites/images/background.bmp
      topleft: !!python/tuple [0, 0]
    name: background
    objtype: Sprite
  dishempty: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [11, 44]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [0, 38]
    name: dishempty
    objtype: Sprite
  dishschnitzel: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [11, 36]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [0, 30]
    name: dishschnitzel
    objtype: Sprite
  drinkbeer: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [5, 9]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [0, 0]
    name: drinkbeer
    objtype: Sprite
  drinkbeerempty: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [11, 9]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [6, 0]
    name: drinkbeerempty
    objtype: Sprite
  drinkcola: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [4, 18]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [0, 10]
    name: drinkcola
    objtype: Sprite
  drinkmineralwater: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [11, 53]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [7, 45]
    name: drinkmineralwater
    objtype: Sprite
  drinkorange: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [4, 27]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [0, 19]
    name: drinkorange
    objtype: Sprite
  drinkwine: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [11, 27]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [5, 19]
    name: drinkwine
    objtype: Sprite
  drinkwineempty: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [6, 53]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [0, 45]
    name: drinkwineempty
    objtype: Sprite
  flag_sprite: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 1
    imagefiles:
    - bottomright: !!python/tuple [37, 41]
      filename: sprites/images/flag_sprite.bmp
      topleft: !!python/tuple [4, 4]
    - bottomright: !!python/tuple [37, 89]
      filename: sprites/images/flag_sprite.bmp
      topleft: !!python/tuple [4, 52]
    - bottomright: !!python/tuple [37, 137]
      filename: sprites/images/flag_sprite.bmp
      topleft: !!python/tuple [4, 100]
    - bottomright: !!python/tuple [37, 185]
      filename: sprites/images/flag_sprite.bmp
      topleft: !!python/tuple [4, 148]
    - bottomright: !!python/tuple [37, 233]
      filename: sprites/images/flag_sprite.bmp
      topleft: !!python/tuple [4, 196]
    - bottomright: !!python/tuple [37, 281]
      filename: sprites/images/flag_sprite.bmp
      topleft: !!python/tuple [4, 244]
    name: flag_sprite
    objtype: Sprite
  gb_cook: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 255, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [41, 41]
      filename: sprites/images/gb_cook.bmp
      topleft: !!python/tuple [0, 0]
    name: gb_cook
    objtype: Sprite
  gb_cookworking: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 255, 0]
    framerate: 3
    imagefiles:
    - bottomright: !!python/tuple [41, 41]
      filename: sprites/images/gb_cook.bmp
      topleft: !!python/tuple [0, 0]
    - bottomright: !!python/tuple [41, 82]
      filename: sprites/images/gb_cook.bmp
      topleft: !!python/tuple [0, 42]
    - bottomright: !!python/tuple [41, 125]
      filename: sprites/images/gb_cook.bmp
      topleft: !!python/tuple [0, 84]
    - bottomright: !!python/tuple [41, 82]
      filename: sprites/images/gb_cook.bmp
      topleft: !!python/tuple [0, 42]
    name: gb_cookworking
    objtype: Sprite
  ground_sprite: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [1300, 49]
      filename: sprites/images/groundsprite.bmp
      topleft: !!python/tuple [0, 0]
    name: ground_sprite
    objtype: Sprite
  menu: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 255, 255]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [12, 9]
      filename: sprites/images/menu.bmp
      topleft: !!python/tuple [0, 0]
    name: menu
    objtype: Sprite
  menues: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 255, 255]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [12, 15]
      filename: sprites/images/menues.bmp
      topleft: !!python/tuple [0, 0]
    name: menues
    objtype: Sprite
  platform_sprite: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 200
    imagefiles:
    - bottomright: !!python/tuple [400, 20]
      filename: sprites/images/groundsprite.bmp
      topleft: !!python/tuple [100, 5]
    name: platform_sprite
    objtype: Sprite
  red_arrow: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [11, 14]
      filename: sprites/images/red_arrow.bmp
      topleft: !!python/tuple [0, 0]
    name: red_arrow
    objtype: Sprite
  softdrinkempty: !!python/object:game.Sprite
    alphakey: !!python/tuple [0, 0, 255]
    framerate: 100
    imagefiles:
    - bottomright: !!python/tuple [10, 18]
      filename: sprites/images/drinksanddishes.bmp
      topleft: !!python/tuple [6, 10]
    name: softdrinkempty
    objtype: Sprite
  soldier_idle: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [39, 50]
      filename: sprites/images/soldier_idle.bmp
      topleft: !!python/tuple [1, 2]
    - bottomright: !!python/tuple [39, 100]
      filename: sprites/images/soldier_idle.bmp
      topleft: !!python/tuple [1, 52]
    - bottomright: !!python/tuple [39, 150]
      filename: sprites/images/soldier_idle.bmp
      topleft: !!python/tuple [1, 102]
    - bottomright: !!python/tuple [39, 200]
      filename: sprites/images/soldier_idle.bmp
      topleft: !!python/tuple [1, 152]
    - bottomright: !!python/tuple [39, 250]
      filename: sprites/images/soldier_idle.bmp
      topleft: !!python/tuple [1, 102]
    - bottomright: !!python/tuple [39, 300]
      filename: sprites/images/soldier_idle.bmp
      topleft: !!python/tuple [1, 252]
    name: soldier_idle
    objtype: Sprite
  soldier_idle_wobp: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 5
    imagefiles:
    - bottomright: !!python/tuple [39, 50]
      filename: sprites/images/soldier_idle_wobp.bmp
      topleft: !!python/tuple [1, 2]
    - bottomright: !!python/tuple [39, 100]
      filename: sprites/images/soldier_idle_wobp.bmp
      topleft: !!python/tuple [1, 52]
    - bottomright: !!python/tuple [39, 150]
      filename: sprites/images/soldier_idle_wobp.bmp
      topleft: !!python/tuple [1, 102]
    - bottomright: !!python/tuple [39, 200]
      filename: sprites/images/soldier_idle_wobp.bmp
      topleft: !!python/tuple [1, 152]
    - bottomright: !!python/tuple [39, 250]
      filename: sprites/images/soldier_idle_wobp.bmp
      topleft: !!python/tuple [1, 102]
    - bottomright: !!python/tuple [39, 300]
      filename: sprites/images/soldier_idle_wobp.bmp
      topleft: !!python/tuple [1, 252]
    name: soldier_idle_wobp
    objtype: Sprite
  soldier_runleft: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [39, 48]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 0]
    - bottomright: !!python/tuple [39, 96]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 48]
    - bottomright: !!python/tuple [39, 144]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 96]
    - bottomright: !!python/tuple [39, 192]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 144]
    - bottomright: !!python/tuple [39, 240]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 192]
    - bottomright: !!python/tuple [39, 288]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 240]
    - bottomright: !!python/tuple [39, 336]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 288]
    - bottomright: !!python/tuple [39, 384]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 336]
    - bottomright: !!python/tuple [39, 432]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 384]
    - bottomright: !!python/tuple [39, 480]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 432]
    - bottomright: !!python/tuple [39, 528]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 480]
    - bottomright: !!python/tuple [39, 576]
      filename: sprites/images/soldier_runleft.bmp
      topleft: !!python/tuple [1, 528]
    name: soldier_runleft
    objtype: Sprite
  soldier_runright: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [39, 48]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 0]
    - bottomright: !!python/tuple [39, 96]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 48]
    - bottomright: !!python/tuple [39, 144]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 96]
    - bottomright: !!python/tuple [39, 192]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 144]
    - bottomright: !!python/tuple [39, 240]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 192]
    - bottomright: !!python/tuple [39, 288]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 240]
    - bottomright: !!python/tuple [39, 336]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 288]
    - bottomright: !!python/tuple [39, 384]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 336]
    - bottomright: !!python/tuple [39, 432]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 384]
    - bottomright: !!python/tuple [39, 480]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 432]
    - bottomright: !!python/tuple [39, 528]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 480]
    - bottomright: !!python/tuple [39, 576]
      filename: sprites/images/soldier_runright.bmp
      topleft: !!python/tuple [1, 528]
    name: soldier_runright
    objtype: Sprite
  table: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 255, 255]
    framerate: 1
    imagefiles:
    - bottomright: !!python/tuple [62, 37]
      filename: sprites/images/table.bmp
      topleft: !!python/tuple [0, 0]
    name: table
    objtype: Sprite
  waiter_idle: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 5
    imagefiles:
    - bottomright: !!python/tuple [39, 50]
      filename: sprites/images/waiter_idle.bmp
      topleft: !!python/tuple [1, 2]
    - bottomright: !!python/tuple [39, 100]
      filename: sprites/images/waiter_idle.bmp
      topleft: !!python/tuple [1, 52]
    - bottomright: !!python/tuple [39, 150]
      filename: sprites/images/waiter_idle.bmp
      topleft: !!python/tuple [1, 102]
    - bottomright: !!python/tuple [39, 200]
      filename: sprites/images/waiter_idle.bmp
      topleft: !!python/tuple [1, 152]
    - bottomright: !!python/tuple [39, 250]
      filename: sprites/images/waiter_idle.bmp
      topleft: !!python/tuple [1, 102]
    - bottomright: !!python/tuple [39, 300]
      filename: sprites/images/waiter_idle.bmp
      topleft: !!python/tuple [1, 252]
    name: waiter_idle
    objtype: Sprite
  waiter_runleft: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [39, 48]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 0]
    - bottomright: !!python/tuple [39, 96]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 48]
    - bottomright: !!python/tuple [39, 144]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 96]
    - bottomright: !!python/tuple [39, 192]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 144]
    - bottomright: !!python/tuple [39, 240]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 192]
    - bottomright: !!python/tuple [39, 288]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 240]
    - bottomright: !!python/tuple [39, 336]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 288]
    - bottomright: !!python/tuple [39, 384]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 336]
    - bottomright: !!python/tuple [39, 432]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 384]
    - bottomright: !!python/tuple [39, 480]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 432]
    - bottomright: !!python/tuple [39, 528]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 480]
    - bottomright: !!python/tuple [39, 576]
      filename: sprites/images/waiter_runleft.bmp
      topleft: !!python/tuple [1, 528]
    name: waiter_runleft
    objtype: Sprite
  waiter_runright: !!python/object:game.Sprite
    alphakey: !!python/tuple [255, 0, 0]
    framerate: 2
    imagefiles:
    - bottomright: !!python/tuple [39, 48]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 0]
    - bottomright: !!python/tuple [39, 96]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 48]
    - bottomright: !!python/tuple [39, 144]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 96]
    - bottomright: !!python/tuple [39, 192]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 144]
    - bottomright: !!python/tuple [39, 240]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 192]
    - bottomright: !!python/tuple [39, 288]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 240]
    - bottomright: !!python/tuple [39, 336]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 288]
    - bottomright: !!python/tuple [39, 384]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 336]
    - bottomright: !!python/tuple [39, 432]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 384]
    - bottomright: !!python/tuple [39, 480]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 432]
    - bottomright: !!python/tuple [39, 528]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 480]
    - bottomright: !!python/tuple [39, 576]
      filename: sprites/images/waiter_runright.bmp
      topleft: !!python/tuple [1, 528]
    name: waiter_runright
    objtype: Sprite
startscreen: level
title: Restaurant - Game Baker Demo
workstates:
  WSScore: !!python/object:game.WorkState
    actions: {1: 'self.z = 100

        self.color = (255,255,255)

        self.resize((60,20))

        self.clear()

        self.old_score = 0

        ', 3: "\\nif game.score <> self.old_score:\\n   self.clear()\\n   self.draw_text(game.score,20,(255,0,0))\\n\\
        \\   self.old_score = game.score\\n"}
    inherits: null
    objtype: Workstate
  wsbackground: !!python/object:game.WorkState
    actions: {1: 'self.x=0

        self.y=0

        self.z=0

        self.vx=4

        self.vy=0

        self.resize(800,600)

        '}
    inherits: null
    objtype: Workstate
  wsclock: !!python/object:game.WorkState
    actions: {1: 'self.z = 100

        self.hours = 11

        self.minutes = 0

        self.ampm = " a.m."

        self.set_timer(1)

        self.color = (255,255,255)

        self.resize((60,20))

        self.clear()


        ', 11: "self.set_timer(1)\\nself.minutes = self.minutes + 1\\nif self.minutes\\
        \\ == 60:\\n   self.minutes = 0\\n   self.hours = self.hours + 1\\n   if self.hours\\
        \\ == 13:\\n      self.hours = 1\\n   if self.hours == 12: \\n      if self.ampm\\
        \\ == \\" a.m.\\":\\n         self.ampm = \\" p.m.\\"\\n      else:\\n         self.ampm\\
        \\ = \\" a.m.\\"\\n\\nself.clear()\\nif self.minutes < 10:\\n   minutestr = \\"0\\"\\
        \\ + str(self.minutes)\\nelse:\\n   minutestr = str(self.minutes)\\nself.draw_text(str(self.hours)\\
        \\ + \\":\\" + minutestr + self.ampm,20,(255,0,0))\\n\\n"}
    inherits: null
    objtype: Workstate
  wscook: !!python/object:game.WorkState
    actions: {1: '

        self.x=410

        self.y=10

        self.vx=0

        self.vy=0

        self.resize(41,41)

        self.preparing_order=0

        self.preptime=0

        self.minx=460

        self.collision_player = 0

        ', 3: "if self.collision_player == 1:\\n\\n#cook takes orders from waiter\\n\\n\\
        \\   self.collision_player = 0\\n   for self.ordercount in range(1,gamescreen.gameobjects[\\"\\
        mastercustomer\\"].number_orders+1):\\n      name = \\"order\\" + str(self.ordercount)\\n\\
        \\      current_order = gamescreen.gameobjects[name]\\n      if current_order.order_state\\
        \\ == \\"ordered\\":\\n         current_order.order_state = \\"entered\\"\\n    \\
        \\     game.score +=1\\n         current_order.clear()\\n         current_order.draw_text(\\"\\
        entered: \\" + current_order.order,20)\\n         self.sprite = \\"gb_cookworking\\"\\
        \\n\\nif self.sprite == \\"gb_cookworking\\":\\n   if self.preptime == 0:\\n   \\
        \\   for self.ordercount in range(1,gamescreen.gameobjects[\\"mastercustomer\\"\\
        ].number_orders+1):\\n         name = \\"order\\" + str(self.ordercount)\\n  \\
        \\       if self.preptime == 0:\\n            current_order = gamescreen.gameobjects[name]\\n\\
        \\            if current_order.order_state == \\"entered\\":\\n              \\
        \\    current_order.order_state = \\"preparing\\"\\n                  current_order.clear()\\n\\
        \\                  current_order.draw_text(\\"preparing: \\" + current_order.order,20)\\n\\
        \\                  if current_order.order == \\"Beer\\":\\n                 \\
        \\    self.preptime = 20\\n                  elif current_order.order == \\"\\
        Mineral water\\":\\n                     self.preptime = 15\\n              \\
        \\    elif current_order.order == \\"Orange juice\\":\\n                     self.preptime\\
        \\ = 15\\n                  elif current_order.order == \\"Wine\\":\\n        \\
        \\             self.preptime = 15\\n                  elif current_order.order\\
        \\ == \\"Coca Cola\\":\\n                     self.preptime = 15\\n           \\
        \\       self.preparing_order = self.ordercount\\n      if self.preptime ==\\
        \\ 0:\\n         self.sprite = \\"gb_cook\\"\\n   else:\\n      self.preptime =\\
        \\ self.preptime - 1\\n      if self.preptime == 0:\\n         name = \\"order\\"\\
        \\ + str(self.preparing_order)\\n         current_order = gamescreen.gameobjects[name]\\n\\
        \\         current_order.order_state = \\"ready\\"\\n         current_order.clear()\\n\\
        \\         current_order.draw_text(\\"ready: \\" + current_order.order,20)\\n\\
        \\         mc = gamescreen.gameobjects[\\"mastercustomer\\"]\\n         mc.number_dishes\\
        \\ = mc.number_dishes + 1\\n         min_free_dish = mc.number_dishes\\n    \\
        \\     name_order = current_order.order\\n         name = \\"dish\\" + str(min_free_dish)\\n\\
        \\         new_dish = gamescreen.add_object(\\"dish\\", name)\\n\\n         new_dish.y\\
        \\ = 30\\n         new_dish.x = (self.minx)\\n         new_dish.z = new_dish.y\\n\\
        \\         new_dish.table = current_order.table\\n         new_dish.state =\\
        \\ 0\\n         self.minx = self.minx + 8\\n         new_dish.vx=0\\n        \\
        \\ new_dish.vy=0\\n         new_dish.ontable = 0\\n         if name_order ==\\
        \\ \\"Beer\\":\\n            new_dish.sprite=\\"drinkbeer\\"\\n            new_dish.resize(6,11)\\n\\
        \\         elif name_order == \\"Mineral water\\":\\n            new_dish.sprite=\\"\\
        drinkmineralwater\\"\\n            new_dish.resize(5,9)\\n         elif name_order\\
        \\ == \\"Orange juice\\":\\n            new_dish.sprite=\\"drinkorange\\"\\n    \\
        \\        new_dish.resize(5,9)\\n         elif name_order == \\"Wine\\":\\n   \\
        \\         new_dish.sprite=\\"drinkwine\\"\\n            new_dish.resize(6,8)\\n\\
        \\         elif name_order == \\"Coca Cola\\":\\n            new_dish.sprite=\\"\\
        drinkcola\\"\\n            new_dish.resize(5,9)\\n         \\n         gamescreen.vars.setdefault(\\"\\
        dishes\\",[]).append(name)"}
    inherits: null
    objtype: Workstate
  wscustomerapproach: !!python/object:game.WorkState
    actions: {1: "self.state = 0\\nself.table_found = 0\\n\\nfor my_table in [\\"table1\\"\\
        ,\\"table2\\",\\"table3\\",\\"table4\\",\\"table5\\",\\"table6\\",\\"table7\\",\\"table8\\"\\
        ,\\"table9\\"]:\\n tb = gamescreen.gameobjects[my_table]\\n if tb.occupied ==\\
        \\ 0:\\n     self.occupied_table = tb\\n     tb.occupant = self\\n     tb.occupied\\
        \\ = 1\\n     self.table_found = 1\\n     break\\n\\nif self.table_found == 0:\\n\\
        \\   self.dly = 100\\n   self.workstate = \\"wscustomerwait\\"\\n\\npass\\n", 3: "self.move_velocity()\\n\\
        self.z = self.y+10\\n\\nif self.state == 0:\\n\\n    self.path.new_path(\\"linear\\"\\
        )\\n\\n    self.path.add_point(self.x,self.y)\\n    self.path.add_point(500,self.y)\\n\\
        \\    self.path.add_point(500, self.occupied_table.y)\\n    self.path.add_point(self.occupied_table.x-10,self.occupied_table.y)\\n\\
        \\    self.path.add_point(self.occupied_table.x-10,self.occupied_table.y-15)\\n\\
        \\n    self.path.start_path()\\n\\n    self.vars[\\"pathpoint\\"]=0\\n    self.state\\
        \\ = 1\\n\\nelif self.state == 1:\\n    self.vars[\\"pathpoint\\"] = (self.vars[\\"\\
        pathpoint\\"] + 0.004)\\n\\n    posn = self.path.get_position(self.vars[\\"pathpoint\\"\\
        ])\\n\\n    self.oldx = self.x\\n    self.x = posn[0]\\n    self.y = posn[1]\\n\\
        \\n    if self.vars[\\"pathpoint\\"] >= 1:\\n      self.workstate = \\"wscustomersitdown\\"\\
        \\n\\n    if self.x < self.oldx:\\n       self.sprite = \\"soldier_runleft\\"\\n\\
        \\    elif self.x > self.oldx:\\n       self.sprite = \\"soldier_runright\\"\\n\\
        \\n# elif self.state == 2:\\n#   if self.x < gamescreen.get_object(\\"table1\\"\\
        ).x + 40:\\n#      self.workstate = \\"wscustomersitdown\\"\\n#      self.state\\
        \\ = 0\\n\\npass"}
    inherits: null
    objtype: Workstate
  wscustomerconsume: !!python/object:game.WorkState
    actions: {1: 'self.dly = 1 + random.random()

        self.dly = self.dly * 50', 3: "\\nself.dly = self.dly - 1\\nif self.dly <= 0:\\n\\
        \\   dish = self.dish\\n   dish.x = self.occupied_table.x + 25\\n   dish.y =\\
        \\ self.occupied_table.y + 10\\n   self.workstate = \\"wscustomerwaitforwaiter\\"\\
        \\n   self.has_menu = 0\\n   self.has_drink = 0\\n   self.needs_menu = 0\\n  \\
        \\ self.contention = self.contention + 200\\n   if dish.sprite == \\"drinkwine\\"\\
        :\\n      dish.sprite = \\"drinkwineempty\\"\\n   elif dish.sprite == \\"drinkcola\\"\\
        :\\n      dish.sprite = \\"softdrinkempty\\"\\n   elif dish.sprite == \\"drinkbeer\\"\\
        :\\n      dish.sprite = \\"drinkbeerempty\\"\\n   elif dish.sprite == \\"drinkmineralwater\\"\\
        :\\n      dish.sprite = \\"softdrinkempty\\"\\n   elif dish.sprite == \\"drinkorange\\"\\
        :\\n      dish.sprite = \\"softdrinkempty\\"\\n   dish.ontable = 1\\n   dish.state\\
        \\ = 3\\n"}
    inherits: null
    objtype: Workstate
  wscustomerleave: !!python/object:game.WorkState
    actions: {1: "self.state = 0\\nself.sprite = \\"soldier_runright\\"\\nself.vx = 4\\n\\
        self.vy = 0\\nself.occupied_table.occupied = 0\\n\\nself.path.points = [] \\n\\
        self.path.new_path(\\"linear\\")\\n\\nself.path.add_point(self.x,self.y)\\nself.path.add_point(self.x,self.y+50)\\n\\
        self.path.add_point(450,self.y+50)\\nself.path.add_point(450, 526)\\nself.path.add_point(1024,526)\\n\\
        self.vars[\\"pathpoint\\"] = 0\\n\\nself.path.start_path()\\n", 3: "\\nself.vars[\\"\\
        pathpoint\\"] = (self.vars[\\"pathpoint\\"] + 0.004)\\n\\nposn = self.path.get_position(self.vars[\\"\\
        pathpoint\\"])\\n\\nself.oldx = self.x\\nself.x = posn[0]\\nself.y = posn[1]\\n\\
        self.z = self.y\\n\\nif self.x < self.oldx:\\n   self.sprite = \\"soldier_runleft\\"\\
        \\nelif self.x > self.oldx:\\n   self.sprite = \\"soldier_runright\\"\\n\\nif self.vars[\\"\\
        pathpoint\\"] >= 1:\\n   self.workstate = \\"wscustomerstart\\"\\n   self.state\\
        \\ = 0\\n"}
    inherits: null
    objtype: Workstate
  wscustomerorder: !!python/object:game.WorkState
    actions: {1: "self.number_orders = 1\\nif self.has_drink == 0:\\n   temprand = random.random()\\n\\
        \\   if temprand < 0.2:\\n      self.order=\\"Mineral water\\"\\n   elif temprand\\
        \\ < 0.4:\\n      self.order=\\"Orange juice\\"\\n   elif temprand < 0.6:\\n   \\
        \\   self.order=\\"Beer\\"\\n   elif temprand < 0.8:\\n      self.order=\\"Wine\\"\\
        \\n   else:\\n      self.order=\\"Coca Cola\\"", 3: "if self.number_orders > 0:\\n\\
        \\   game.score = game.score + 1\\n   self.number_orders = self.number_orders\\
        \\ - 1\\n\\n   ply = gamescreen.gameobjects[\\"player\\"]\\n   mc = gamescreen.gameobjects[\\"\\
        mastercustomer\\"]\\n   ply.order = self.order\\n   ply.number_orders = ply.number_orders\\
        \\ + 1   \\n   ordercount = 0\\n   min_free_order = 0\\n   for ordercount in range(1,mc.number_orders\\
        \\ + 1):\\n     if gamescreen.gameobjects[\\"order\\" + str(ordercount)].order\\
        \\ == \\"\\":\\n        min_free_order = ordercount\\n        break\\n   if min_free_order\\
        \\ == 0:\\n      mc.number_orders = mc.number_orders + 1\\n      min_free_order\\
        \\ = mc.number_orders\\n      name = \\"order\\" + str(min_free_order)\\n     \\
        \\ new_order = gamescreen.add_object(\\"order\\", name)\\n\\n      new_order.x\\
        \\ = 500\\n      new_order.y = (min_free_order) * 20 - 20\\n      new_order.z\\
        \\ = new_order.y\\n      new_order.vx=0\\n      new_order.vy=0\\n      new_order.resize(300,20)\\n\\
        \\      new_order.table = self.occupied_table\\n      gamescreen.vars.setdefault(\\"\\
        orders\\",[]).append(name)\\n   else:\\n      name = \\"order\\" + str(min_free_order)\\n\\
        \\      new_order = gamescreen.gameobjects[name]\\n      \\n   new_order.clear()\\n\\
        \\   new_order.order = self.order\\n   new_order.order_state = \\"ordered\\"\\n\\
        \\   new_order.draw_text(\\"ordered: \\" + self.order,20)\\nelse:\\n   self.workstate\\
        \\ = \\"wscustomerwaitforwaiter\\""}
    inherits: null
    objtype: Workstate
  wscustomerreadmenu: !!python/object:game.WorkState
    actions: {1: 'self.dly = 1 + random.random()

        self.dly = self.dly * 40', 3: "self.dly = self.dly - 1\\nif self.dly <= 0:\\n\\
        \\   menu = gamescreen.gameobjects[\\"menu\\"]\\n   menu.x = self.occupied_table.x\\
        \\ + 20\\n   menu.y = self.occupied_table.y + 10\\n   self.workstate = \\"wscustomerwaitforwaiter\\"\\
        \\n   self.has_menu = 0\\n   self.needs_menu = 0\\n   self.occupied_table.has_menu\\
        \\ = 1"}
    inherits: null
    objtype: Workstate
  wscustomersitdown: !!python/object:game.WorkState
    actions: {1: "self.vx = 0\\nself.vy = 0\\nself.sprite = \\"soldier_idle_wobp\\"\\n\\
        self.contention = 1000\\nif random.random > 0.7:\\n   self.needs_menu = 1\\n\\
        else:\\n   self.needs_menu = 0\\n\\nself.workstate = \\"wscustomerwaitforwaiter\\"",
      3: pass}
    inherits: null
    objtype: Workstate
  wscustomerstart: !!python/object:game.WorkState
    actions: {1: "self.x=-100\\nself.y=530\\nself.z=530\\nself.vx=4\\nself.vy=0\\nself.resize(38,48)\\n\\
        self.has_drink = 0\\nself.path.points = [] \\nself.dly = 1\\nself.needs_menu\\
        \\ = 0\\n", 3: "self.dly=self.dly - 1\\n\\nif self.dly <= 0:\\n   self.workstate\\
        \\ = \\"wscustomerapproach\\"\\n \\n"}
    inherits: null
    objtype: Workstate
  wscustomerwait: !!python/object:game.WorkState
    actions: {1: pass, 3: "\\nself.dly=self.dly - 1\\n\\nif self.dly <= 0:\\n   self.workstate\\
        \\ = \\"wscustomerapproach\\"\\n"}
    inherits: null
    objtype: Workstate
  wscustomerwaitforwaiter: !!python/object:game.WorkState
    actions: {1: "if self.contention > 200:\\n   self.sprite = \\"soldier_idle_wobp\\"\\
        \\nelse:\\n   self.sprite = \\"soldier_idle\\"\\n\\n", 3: "self.contention = self.contention\\
        \\ - 1\\nif self.contention == 200:\\n   self.sprite = \\"soldier_idle\\"\\n\\nif\\
        \\ self.contention <= 0:\\n   self.workstate = \\"wscustomerleave\\"\\n"}
    inherits: null
    objtype: Workstate
  wsdish: !!python/object:game.WorkState
    actions: {1: pass}
    inherits: null
    objtype: Workstate
  wsmastercustomer: !!python/object:game.WorkState
    actions: {1: "self.x = 0\\nself.y = 0\\nself.resize(0,0)\\n\\nself.set_timer(3)\\n\\n\\
        self.number_customers = 0\\nself.number_tables = 0\\nself.number_orders = 0\\n\\
        self.number_dishes = 0\\n\\nfor self.number_tables in range(1,10):\\n   name\\
        \\ = \\"table\\" + str(self.number_tables)\\n   a = gamescreen.add_object(\\"table\\"\\
        , name)\\n\\n   if self.number_tables < 4: \\n      a.x = 100\\n      a.y = (self.number_tables)\\
        \\ * 100 \\n   elif self.number_tables < 7:\\n      a.x = 210\\n      a.y = (self.number_tables-3)\\
        \\ * 100\\n   else:\\n      a.x = 320\\n      a.y = (self.number_tables-6) * 100\\n\\
        \\   a.z = a.y\\n   a.vx=0\\n   a.vy=0\\n   a.resize(62,37)\\n   a.occupied=0\\n\\
        \\   a.has_menu = 0\\n   a.number = self.number_tables\\n\\n   gamescreen.vars.setdefault(\\"\\
        tables\\",[]).append(name)\\n\\n", 3: pass, 11: "# Create a new customer\\n# (modeled\\
        \\ after the alien creation logic in space aliens demo)\\n\\nself.number_customers\\
        \\ = self.number_customers + 1\\nname = \\"customer\\" + str(self.number_customers)\\n\\
        a = gamescreen.add_object(\\"customer\\", name)\\n\\ngamescreen.vars.setdefault(\\"\\
        customers\\",[]).append(name)\\n\\nif self.number_customers < 15:\\n   cl = gamescreen.gameobjects[\\"\\
        clock\\"]\\n   if cl.hours < 12:\\n      new_timer = 130 - (cl.hours * 10)\\n\\
        \\   else:\\n      new_timer = (cl.hours - 11) * 10\\n\\nself.set_timer(new_timer)"}
    inherits: null
    objtype: Workstate
  wsmenu: !!python/object:game.WorkState
    actions: {1: 'self.x=0

        self.y=0

        self.z=0

        self.resize(1,1)

        self.vx=0

        self.vy=0

        self.occupied=0

        '}
    inherits: null
    objtype: Workstate
  wsmenues: !!python/object:game.WorkState
    actions: {1: 'self.x=5

        self.y=80

        self.z=321

        self.vx=0

        self.vy=0

        self.resize(11,14)


        '}
    inherits: null
    objtype: Workstate
  wsmenusign: !!python/object:game.WorkState
    actions: {1: 'self.color = (255,255,255)

        self.clear()

        self.resize(400,25)

        self.z = 40

        self.draw_text("Today''s special: Wiener Schnitzel with potato salad $ 7.10",20)

        '}
    inherits: null
    objtype: Workstate
  wsorder: !!python/object:game.WorkState
    actions: {1: 'self.color = (255,255,255)

        self.clear()

        self.resize(400,20)

        self.x = 500

        self.y = 20



        '}
    inherits: null
    objtype: Workstate
  wsplayercelebrate: !!python/object:game.WorkState
    actions: {1: '

        self.sprite = "soldier_applaud"

        self.vx = 0

        self.vy = 0

        self.count = 0

        ', 3: "\\nself.count +=1\\nif self.count > 40:\\n    game.change_game_screen(\\"\\
        levelcomplete\\")\\npass"}
    inherits: null
    objtype: Workstate
  wsplayerstart: !!python/object:game.WorkState
    actions: {-552: self.vx = 0, -550: 'self.vx = 0

        ', -548: self.vy = 0, -546: self.vy = 0, 1: '

        gamescreen.color=[140,140,100]


        self.x=200

        self.y=500

        self.vx=0

        self.vy=0

        self.ax=0.

        self.ay=0.

        self.resize(38,48)

        self.number_orders = 0

        self.number_full_dishes = 0

        self.number_empty_dishes = 0

        self.has_menu = 0

        self.previous_collision = 0

        self.displacement_object = 5


        # Move the game screen


        gamescreen.move_gamescreen([self.x,self.y],gradual=True,acceleration=1)

        ', 3: "# A few comments won't hurt!\\n\\n# Check if the player is on any surface\\
        \\ (table, that is)\\n\\nself.onsurface=False\\n\\nself.vytemp = self.vy\\nself.vxtemp\\
        \\ = self.vx\\n\\nmenu = gamescreen.gameobjects[\\"menu\\"]\\nif gamescreen.check_collisions(\\"\\
        player\\",\\"menues\\"):\\n   if self.previous_collision == 0:\\n      self.previous_collision\\
        \\ = 1\\n      if self.has_menu == 0 and gamescreen.get_object(\\"menu\\").occupied\\
        \\ == 0:\\n         self.has_menu = 1\\n         menu.occupied = 1\\n        \\
        \\ menu.resize(15,9)\\n         menu.x = self.x\\n         menu.y = self.y  \\
        \\  \\n         menu.z = self.z + 1\\n      elif self.has_menu == 1:\\n      \\
        \\   self.has_menu = 0\\n         menu.occupied = 0\\n         menu.resize(1,1)\\n\\
        \\         menu.x = 0  \\n         menu.y = 0  \\nelse:\\n   self.previous_collision\\
        \\ = 0\\n     \\nif abs(self.vx) > 0.5:\\n    if self.vx > 0:\\n        self.sprite\\
        \\ = \\"waiter_runright\\"\\n        self.displacement_object = 7\\n    else:\\n\\
        \\        self.sprite = \\"waiter_runleft\\"\\n        self.displacement_object\\
        \\ = -7\\nelse:\\n    self.sprite = \\"waiter_idle\\"\\n    self.displacement_object\\
        \\ = 7\\n\\nfor surface in [\\"table1\\",\\"table2\\",\\"table3\\",\\"table4\\",\\"table5\\"\\
        ,\\"table6\\",\\"table7\\",\\"table8\\",\\"table9\\"]:\\n    if gamescreen.check_collisions(\\"\\
        player\\",surface):\\n        tb = gamescreen.gameobjects[surface]\\n       \\
        \\ if self.y + self.vy * 0.12 > tb.y - 35:\\n            if self.y + self.vy\\
        \\ * 0.12 < tb.y:  \\n                if self.x + self.vx * 0.12 > tb.x - 20:\\n\\
        \\                    if self.x + self.vx * 0.12 < tb.x + 40:  \\n         \\
        \\               if self.y <= tb.y - 35: \\n                           self.vy\\
        \\ = 0\\n                        if self.y >= tb.y:\\n                      \\
        \\     self.vy = 0\\n                        if self.x <= tb.x - 20:\\n     \\
        \\                      self.vx = 0\\n                        if self.x >= tb.x\\
        \\ + 40:\\n                           self.vx = 0\\n                        self.vy\\
        \\ = 0\\n                        self.vx = 0\\n                        if tb.occupied\\
        \\ == 1 and self.has_menu == 1:\\n                           if tb.occupant.workstate\\
        \\ == \\"wscustomerwaitforwaiter\\":\\n                              if tb.occupant.needs_menu\\
        \\ == 1:\\n                                 game.score = game.score + 1\\n  \\
        \\                               tb.occupant.workstate = \\"wscustomerreadmenu\\"\\
        \\n                                 tb.occupant.has_menu = 1\\n            \\
        \\                     menu.x = tb.occupant.x + 15\\n                      \\
        \\           menu.y = tb.occupant.y + 20\\n                                \\
        \\ menu.z = tb.occupant.z + 20\\n                                 self.has_menu\\
        \\ = 0\\n                              else:\\n                             \\
        \\    tb.occupant.workstate = \\"wscustomerorder\\"\\n                       \\
        \\ if tb.has_menu == 1:\\n                           self.has_menu = 1\\n   \\
        \\                        menu.occupied = 1\\n                           menu.x\\
        \\ = self.x\\n                           menu.y = self.y    \\n             \\
        \\              menu.z = self.z + 1\\n                           tb.has_menu\\
        \\ = 0\\n                        if self.number_full_dishes > 0:\\n         \\
        \\                  if tb == self.carrying_dish.table:\\n                  \\
        \\            game.score = game.score + 2\\n                              tb.occupant.workstate\\
        \\ = \\"wscustomerconsume\\"\\n                              self.carrying_dish.x\\
        \\ = tb.occupant.x + 15\\n                              self.carrying_dish.y\\
        \\ = tb.occupant.y + 20\\n                              self.carrying_dish.z\\
        \\ = tb.occupant.z + 20\\n                              self.number_full_dishes\\
        \\ = 0\\n                              tb.occupant.dish = self.carrying_dish\\n\\
        \\                              self.carrying_dish.state = 2\\n            \\
        \\                  tb.occupant.has_drink = 1\\n                        elif\\
        \\ self.has_menu == 0 and self.number_full_dishes == 0:\\n                 \\
        \\          for number_dish in range(1,gamescreen.gameobjects[\\"mastercustomer\\"\\
        ].number_dishes+1):\\n                              name = \\"dish\\" + str(number_dish)\\n\\
        \\                              dish_obj = gamescreen.gameobjects[name]\\n \\
        \\                             if dish_obj.state == 3:\\n                  \\
        \\               if dish_obj.table == tb:\\n                               \\
        \\     tb.occupant.workstate = \\"wscustomerleave\\"\\n                      \\
        \\              game.score = game.score + 2 + (tb.occupant.contention * 0.001)\\n\\
        \\                                    dish_obj.state = 4\\n                \\
        \\                    self.carrying_dish = dish_obj\\n                     \\
        \\               self.number_empty_dishes = 1\\n                           \\
        \\         dish_obj.x = self.x + 15\\n                                    dish_obj.y\\
        \\ = self.y + 20\\n                                    dish_obj.z = self.z +\\
        \\ 1\\n                                    break\\n\\nif self.y > 550:\\n   self.vy\\
        \\ = self.vy - 125\\nif self.y < 20:\\n   self.vy = self.vy + 125\\n   if gamescreen.check_collisions(\\"\\
        player\\",\\"cook\\"):\\n      gamescreen.gameobjects[\\"cook\\"].collision_player\\
        \\ = 1\\n   elif self.x > 400:\\n      if self.has_menu == 0:  \\n         if\\
        \\ self.number_full_dishes == 0:\\n            for dish in range(1,gamescreen.gameobjects[\\"\\
        mastercustomer\\"].number_dishes + 1):\\n               name = \\"dish\\" + str(dish)\\n\\
        \\               dish_obj = gamescreen.gameobjects[name]\\n               if\\
        \\ dish_obj.state == 0:\\n                  dish_obj.state = 1\\n           \\
        \\       self.number_full_dishes = 1\\n                  dish_obj.x = self.x\\
        \\ + 15\\n                  dish_obj.y = self.y + 20\\n                  dish_obj.z\\
        \\ = self.z +1\\n                  self.carrying_dish = dish_obj\\n         \\
        \\         break\\n         if self.number_empty_dishes > 0:\\n            for\\
        \\ dish in range(1,gamescreen.gameobjects[\\"mastercustomer\\"].number_dishes\\
        \\ + 1):\\n               name = \\"dish\\" + str(dish)\\n               dish_obj\\
        \\ = gamescreen.gameobjects[name]\\n               if dish_obj.state == 4:\\n\\
        \\                  dish_obj.state = -1\\n                  self.number_empty_dishes\\
        \\ = 0\\n                  dish_obj.x = self.x + 15\\n                  dish_obj.y\\
        \\ = self.y - 10\\n                  dish_obj.z = self.z - 2\\n             \\
        \\     break\\n                \\nif self.x > 750:\\n   self.vx = self.vx - 125\\n\\
        if self.x < 10:\\n   self.vx = self.vx + 125\\n\\nself.move_velocity()\\n\\nself.vy\\
        \\ = self.vytemp\\nself.vx = self.vxtemp\\nself.z = self.y\\nif self.has_menu\\
        \\ == 1:\\n   menu.x = self.x + 15 + self.displacement_object\\n   menu.y = self.y\\
        \\ + 20\\n   menu.z = self.z + 1\\nelif self.number_full_dishes + self.number_empty_dishes\\
        \\ > 0:\\n   self.carrying_dish.x = self.x + 17 + self.displacement_object\\n\\
        \\   self.carrying_dish.y = self.y + 20\\n   self.carrying_dish.z = self.z +\\
        \\ 1\\n\\npass", 546: self.vy = -100, 548: self.vy = 100, 550: self.vx = 100,
      552: self.vx = -100}
    inherits: null
    objtype: Workstate
  wstable: !!python/object:game.WorkState
    actions: {1: 'self.vx=0

        self.vy=0

        self.resize(48,37)

        self.occupied=0

        self.has_menu = 0

        '}
    inherits: null
    objtype: Workstate

"""
if __name__ == "__main__":
  import gbfileio,sys,runtime
  game = gbfileio.loadgame(sys.argv[0])
  runtime.run_game(game)
